export default function useRouterFunc() {
  const router = useRouter();

  const goBack = () => {
    router.go(-1);
  };
  const forward = () => {
    router.go(1);
  };

  return {
    goBack,
    forward,
  };
}
